//
//  AppDelegate.m
//  WeiboDemo
//
//  Created by Bworm on 15/1/28.
//  Copyright (c) 2015年 Bworm. All rights reserved.
//

#import "AppDelegate.h"
#import "DJTabBarController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // 初始化带色彩日志
    [DDLog addLogger:[DDTTYLogger sharedInstance]];
    // 开启带色彩日志
    [[DDTTYLogger sharedInstance] setColorsEnabled:YES];
    // 自定义日志颜色
    [[DDTTYLogger sharedInstance] setForegroundColor:[UIColor greenColor] backgroundColor:[UIColor purpleColor] forFlag:DDLogFlagDebug];
    
    // 1.创建window
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    [self.window setBackgroundColor:[UIColor lightGrayColor]];

    // 2.初始化根控制器
    DJTabBarController *tabBarVc = [[DJTabBarController alloc] init];
    [self.window setRootViewController:tabBarVc];
    
    // 3.显示window
    [self.window makeKeyAndVisible];
    return YES;
}

@end
